package com.service;

import com.util.ServerResponse;

/**
 * Created with IntelliJ IDEA.
 * User: HL
 * Date: 2020/3/3
 * Time: 14:35
 * Description: No Description
 */
public interface BaseService<T> {
    //添加
    public ServerResponse save(T t);
    //删除（其实是修改状态 status字段 1改成0）
    // 封装主键、status
    public ServerResponse modifyStatus(Integer id);
    //修改
    public ServerResponse modify(T t);
    //根据主键查询
    public ServerResponse getById(Integer id);
    //查询所有
    public ServerResponse getAll();
}
